package cn.sc.summer.token.builder;

import cn.sc.summer.token.po.Token;

/**
 * 类名：构造者实现类
 *
 * @author a-xin
 * @date 2023/9/5 14:47
 */
public class TokenInfoBuilder extends BaseTokenBuilder {

    private final Token token = new Token();

    /**
     * 构造token发布的基础信息
     */
    @Override
    protected void buildTokenInfo() {
        token.setEmail("1846221495@qq.com");
        token.setUserCompany("summer");
        token.setCreateTime(System.currentTimeMillis());
        token.setWebSite("www.summer.sc.cn");
        token.setUserName("a-xin");
    }

    @Override
    protected Token build() {
        return token;
    }

}
